package com.walter.epay.paramenum.createorder;

/**
 * 创建订单参数常量
 *
 * @author: wuchenxi
 * @date: 2022/12/31 13:52:52
 */
public enum EpayCreateOrderIsHtmlEnum {
    /**
     * 返回订单json数据
     */
    IS_JSON(0),

    /**
     * 跳转到易登公用支付页面
     */
    IS_HTML(1);

    private final int code;

    EpayCreateOrderIsHtmlEnum(int code) {
        this.code = code;
    }

    public static EpayCreateOrderIsHtmlEnum getByCode(int code) {
        for (EpayCreateOrderIsHtmlEnum value : EpayCreateOrderIsHtmlEnum.values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

}
